#! /bin/sh
# do and display nmo and stack


# Do NMO
sunmo <modeldata par=stkvel.p1 >nmodata

# Display NMO
suwind <nmodata key=sx s=1400 j=250 |
sugain tpow=2 gpow=0.5 |
supsimage label1="Time" label2="Gather" \
	title="Every 5th Shot Record After NMO" \
	windowtitle="NMO" legend=1 units="amplitude" \
	f2=1 d2=0.078125 f2num=1 d2num=5  > gathers.eps

# Sort to CDP's and stack
susort <nmodata |
sustack normpow=1.0 >stackdata

# Display Stack (cdps from 350-4600, spacing is 50, full fold from 1450-3500)
sugain <stackdata tpow=2 gpow=0.5 |
supsimage label1="Time" label2="CMP" title="Stack" windowtitle="Stack" \
	f2=350 d2=50  legend=1 units="amplitude" > stack.eps

echo
echo
echo " You  may now view the files:  gathers.eps stack.eps"
echo " with your PostScript Previewer"

exit
